package com.jingdianjichi.sunject.application.convert;

import com.jingdianjichi.subject.domain.entity.SubjectCategoryBo;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import com.jingdianjichi.subject.infra.basic.entity.SubjectLabel;
import com.jingdianjichi.sunject.application.dto.SubjectCategoryDTO;
import com.jingdianjichi.sunject.application.dto.SubjectLabelDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签实体类转换
 */
@Mapper
public interface SubjectLabelDTOConverter {

    SubjectLabelDTOConverter INSTANCE=Mappers.getMapper(SubjectLabelDTOConverter.class);


    SubjectLabelBo convertDtoToBo(SubjectLabelDTO subjectLabelDTO);

    List<SubjectLabel> convertBoListToEntityList(List<SubjectLabelBo> subjectLabelBoList);

    List<SubjectLabelDTO> convertBoListToDtoList(List<SubjectLabelBo> subjectLabelBoList);

}
